package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.modular.system.dao.DictMapper;
import com.stylefeng.guns.modular.system.model.Project;
import com.stylefeng.guns.modular.system.dao.ProjectMapper;
import com.stylefeng.guns.modular.system.service.IProjectService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 项目 服务实现类
 * </p>
 *
 * @author kutty
 * @since 2018-09-13
 */
@Service
public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> implements IProjectService {

    @Resource
    private ProjectMapper projectMapper;
    /**
     * 查询字典列表
     */
    public List<Map<String, Object>> showAll(@Param("condition") String conditiion){
        return projectMapper.showAll(conditiion);
    }

    /**
     * 根据ID查询数据
     * */
    public Project selectById(@Param("id")Integer id){
        return projectMapper.selectById(id);
    }
}
